import { createWebHistory, createRouter } from "vue-router";
import HomeView from "@/views/HomeView.vue";
import IndexList from "@/views/IndexList.vue";
import SelectItemFun from "@/views/SelectItemFun.vue";
import SignFormData from "@/views/SignFormData.vue";
import SignHistoryData from "@/views/SignHistoryData.vue";
import TriadView from "@/views/TriadView.vue";
import test1 from "@/views/test1.vue";
import chart from "@/views/chart.vue";
import login from "@/views/login.vue";
import noaccess from "@/views/401page.vue";
import notfound from "@/views/notfound.vue";
import userInfo from "@/views/userinfo.vue";
import calvideo from "@/views/calvideo.vue";
import restpwd from "@/views/restpwd.vue";
import bmllist from "@/views/bmllist.vue";
import emrlist from "@/views/emrlist.vue";
import emrdata from "@/views/emrdatas/emrdata.vue";
import yzd from "@/views/yzd.vue";
import threedemo from "@/views/threedemo.vue";
import yyzzx from "@/views/yyzzx.vue";

const routes = [
  { path: "/demo", component: HomeView },
  { path: "/testkeyborde", component: test1 },
  { path: "/", component: IndexList },
  { path: "/SelectItemFun", component: SelectItemFun },
  { path: "/SignFormData", component: SignFormData },
  { path: "/SignHistoryData", component: SignHistoryData },
  { path: "/TriadView", component: TriadView },
  { path: "/chart", component: chart },
  { path: "/login", component: login },
  { path: "/noaccess", component: noaccess },
  { path: "/userInfo", component: userInfo },
  { path: "/calvideo", component: calvideo },
  { path: "/restpwd", component: restpwd },
  { path: "/bmllist", component: bmllist },
  { path: "/yizhudata", component: yzd },
  { name: "emrlist", path: "/emrlist/:id", component: emrlist },
  { name: "emrdata", path: "/emrdata/:id/:sortid/:name", component: emrdata },
  { path: "/ty3d", component: threedemo },
  { path: "/yyzzx", component: yyzzx },
  { path: "/:pathMatch(.*)*", name: "not-found", component: notfound },
];
const router = createRouter({
  history: createWebHistory(),
  routes,
});
export default router;
